package com.tuoxie.practice;

public class _01 {
    public static void main(String[] args) {
        // 循环
        // 1. for
        for (int i=1;i<=5;i++){
            System.out.println(i);
        }

        System.out.println("--------------------");
        for (int i=5;i>=1;i--){
            System.out.println(i);
        }

        System.out.println("---------practice-----------");
        int sum = 0;
        for (int i=1;i<=100;i++){
            if (i % 2 == 0){
                sum += i;
            }
        }
        System.out.println(sum);
    }
}
